package com.example.d12_homework.homework02;

/**
 * 电视类
 */
public class TV {
    private String name;

    public TV() {

    }

    public TV(String name) {
        this.name = name;
    }

    public void play(String channel) {
        System.out.println(name + "电视正在播放" + channel + "节目");
    }
}
